<?php
    session_start();  
    require 'crud/CustomSecurity.class.php';
    require 'common/Utility.php';
    require 'crud/Userdata.class.php';
    require 'crud/Prognosis.class.php';
    require 'crud/Matches.class.php';
    require 'db/configuration.php';
    loginCheck();
    loadDB();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html lang="bg">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
    <link rel="stylesheet" type="text/css" href="css/page.css" />
    <link rel="stylesheet" type="text/css" href="css/main.css" />
    <link rel="stylesheet" type="text/css" href="css/generalProduct.css" />
    <link rel="stylesheet" type="text/css" href="css/add-product.css" />
    <link rel="stylesheet" href="js/autocomplete/jquery.autocomplete.css" type="text/css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
  	<script type="text/javascript" src="js/autocomplete/jquery.autocomplete.js"></script>
	<title></title>
	<meta name="author" content="Dimtiar Giormov">
	
</head>
    <body>
    	
        	<div id="bet-details">
        	<h2>Резултати:</h2><br></br>
        	<?php
        		echo '<ul>';
        		$progs = new Prognosis(con());
        		$results = $progs->getUserPrognosis($_GET['idm']);
				foreach($results as $result){
					echo $result[0].'  -  '.$result[1].' '.$result[2].':'.$result[3].'<br/>';
				}
				echo '</ul>';
        	?>
			</div>
    </body>
</html>